# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.10.2)

project("glide")
add_subdirectory(giflib)

add_library( # Sets the name of the library.
        native-lib

        SHARED

        GifDecoder.cpp
        include/GifDecoder.h
        include/log.h
        include/Stream.h
        include/Color.h
        Stream.cpp

        # Provides a relative path to your source file(s).
        native-lib.cpp)


TARGET_LINK_LIBRARIES(
        # Specifies the target library.
        native-lib
        PUBLIC
        # 外部链接库
        giflib
        # Anroid libs
        jnigraphics
        log
)